<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text和v-html示例</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
    <div id="app">
        <h3>value此时的值:{{value}}</h3>
        <div v-if="value>0.5">
            你现在可以看到我
        </div>

        <div v-else>
            你现在看不到我
        </div>
    </div>

    <script>
        new Vue({
            el:"#app",
            data:{
                value:Math.random()
            }
        })
    </script>
</body>
</html>
